// index.js
// 获取应用实例

Component({
  options: {
    multipleSlots: true
  },
  properties: {
    title: {
      type: String,
      default: ''
    },
    titlePos: {
      type: String,
      default: 'left'
    },
    heightBase: {
      type: String,
      default: '',
      observer: function(val) {
        val && this.setData({
          height: `calc(100vh - ${val}rpx)`,
          slotHeight: `calc(100vh - ${val + 42}rpx)`
        });
      }
    }
  },
  data: {
    height: '',
    slotHeight: ''
  },
  methods: {
    closePop() {
      this.triggerEvent('closePop')
    },
    stop() {
    }
  }
})
